#include "buzzer.h"
#include "../config/config.h"

void Buzzer::init()
{
  Serial.println("Buzzer init....");
  pinMode(BuzzerPin, OUTPUT);
  digitalWrite(BuzzerPin, LOW);
}
void Buzzer::on()
{
  digitalWrite(BuzzerPin, HIGH);
}
void Buzzer::off()
{
  digitalWrite(BuzzerPin, LOW);
}

void Buzzer::warning()
{
  on();
  delay(200);
  off();
}